#ifndef CIPODLIST_H_
#define CIPODLIST_H_

#include <list>
#include "CIpodDevice.h"

#ifdef __cplusplus
extern "C"{
#endif


class CIpodList {
public:
    static CIpodDevice *getDevice(ipod_t handle);
    static void push(CIpodDevice *device);
    static void pop(ipod_t handle);
    static bool isDeviceExist(ipod_t handle);
    static bool isDeviceExist(const char *path);
    static std::list<CIpodDevice *> getDeviceList();

private:
    static std::list<CIpodDevice *> s_DeviceList;
};

#ifdef __cplusplus
}
#endif
#endif /* CIPODLIST_H_ */
